package com.comm.db.pojo;

import java.util.HashSet;
import java.util.Set;

/**
 * TRole entity. @author MyEclipse Persistence Tools
 */

public class TRole implements java.io.Serializable {

	// Fields

	private Integer id;
	private String codeNo;
	private String roleName;
	private String description;
	private Integer status;
	private Integer isLeaf;
	private Integer parentId;
	private Set TRoleXPrivs = new HashSet(0);
	private Set TLoginXRoles = new HashSet(0);

	// Constructors

	/** default constructor */
	public TRole() {
	}

	/** full constructor */
	public TRole(String codeNo, String roleName, String description,
			Integer status, Integer isLeaf, Integer parentId, Set TRoleXPrivs,
			Set TLoginXRoles) {
		this.codeNo = codeNo;
		this.roleName = roleName;
		this.description = description;
		this.status = status;
		this.isLeaf = isLeaf;
		this.parentId = parentId;
		this.TRoleXPrivs = TRoleXPrivs;
		this.TLoginXRoles = TLoginXRoles;
	}

	// Property accessors

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getCodeNo() {
		return this.codeNo;
	}

	public void setCodeNo(String codeNo) {
		this.codeNo = codeNo;
	}

	public String getRoleName() {
		return this.roleName;
	}

	public void setRoleName(String roleName) {
		this.roleName = roleName;
	}

	public String getDescription() {
		return this.description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public Integer getStatus() {
		return this.status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public Integer getIsLeaf() {
		return this.isLeaf;
	}

	public void setIsLeaf(Integer isLeaf) {
		this.isLeaf = isLeaf;
	}

	public Integer getParentId() {
		return this.parentId;
	}

	public void setParentId(Integer parentId) {
		this.parentId = parentId;
	}

	public Set getTRoleXPrivs() {
		return this.TRoleXPrivs;
	}

	public void setTRoleXPrivs(Set TRoleXPrivs) {
		this.TRoleXPrivs = TRoleXPrivs;
	}

	public Set getTLoginXRoles() {
		return this.TLoginXRoles;
	}

	public void setTLoginXRoles(Set TLoginXRoles) {
		this.TLoginXRoles = TLoginXRoles;
	}

}